<?
include 'header.php';
?>
<div class="body">
	<table border="0" class="news">
		<tr>
			<td>
			<h1>Welcome to <? echo $comp; ?>'s Blog!</h1>
			</td>
			<td>
				<img src="<? echo $logo; ?>">
			</td>		
		</tr>
			 <?

// DO NOT CHANGE THESE NEXT FEW LINES! This is the important news collection code.
//---------------------------------------------------------------------------------------------------------------------
				include './mysql.php';
				
				$results = mysql_query("SELECT eventdate, eventname, eventdesc From event ORDER BY id DESC LIMIT 2");
				
				while($row = mysql_fetch_array($results))
				{
					echo "<tr><td>";
					echo "<h1>" . $row['eventname'] . "</h1>";
					echo "<p class=\"latest\">" . $row['eventdesc'] . "</p>";
					echo "<br />";						// Change this! VVV [ <a>" . $row['author'] . "</a> ]
					echo "<p class=\"date\"> Posted on " . $row['eventdate'] . " by  <a>Lee</a>. </p>";
					echo "</td></tr>";
				}
				
				include './mysql.php';
//--------------------------------------------------------------------------------------------------------------------
			?>              
	</table>
</div>
<?
include 'footer.php';
?>
